package ejb.com.bbva.cbm.dominio;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

@Embeddable
public class TransaccionPerfilEntityId implements Serializable{
	private long transaccionId;
	private long perfilId;

	@Column(name="TRANSACCION_ID")
	public long getTransaccionId() {
		return transaccionId;
	}
	public void setTransaccionId(long transaccionId) {
		this.transaccionId = transaccionId;
	}

	@Column(name="PERFIL_ID")
	public long getPerfilId() {
		return perfilId;
	}
	public void setPerfilId(long perfilId) {
		this.perfilId = perfilId;
	}

	public boolean equals(Object other) {
		if ( (this == other ) ) return true;
		if ( (other == null ) ) return false;
		if ( !(other instanceof TransaccionPerfilEntityId) ) return false;
		TransaccionPerfilEntityId castOther = (TransaccionPerfilEntityId) other; 
	         
		return (this.transaccionId==castOther.transaccionId) && (this.perfilId==castOther.perfilId);
	}
	   
	public int hashCode() {
		int result = 17;
	         
		result = 37 * result + (int)transaccionId;
		result = 37 * result + (int)perfilId;
		return result;
	}
}
